package com.healthtop.service.impl;

import com.healthtop.dao.XsDictionaryTypeDao;
import com.healthtop.model.XsDictionaryType;
import com.healthtop.service.XsDictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class XsDictionaryTypeServiceImpl implements XsDictionaryTypeService {

    @Autowired
    private XsDictionaryTypeDao xsDictionaryTypeDao;

    @Override
    public List<XsDictionaryType> selectAll() {
        return xsDictionaryTypeDao.selectAll();
    }

    @Override
    public void insert(XsDictionaryType xsDictionaryType) {
        xsDictionaryTypeDao.insert(xsDictionaryType);
    }
}
